require(['loading'], function(loading) {
	var params = getUrlParams();
	var orderId = params.orderId?params.orderId:'';
	var paymentSucc = new Vue({
		el: '#container',
		data: {
			orderPayResultUrl: wxUrl + '/v3.2/order/orderPayResult',
			data:{},
			item: {
				params:{
					token: token,
					userToken: userToken,
					orderId: orderId
				}
			}
		},
		ready: function() {
	        this.orderPayResult();
	    },
		methods: {
			orderPayResult:function() {
				this.$http.get(this.orderPayResultUrl, this.item)
					.then(function(response) {
						var result = JSON.parse(response.body);
						if (result.code == 0) {
							this.$set("data",result.data);
						}
					},function(response) {
						//errorCallback
					});
				
			}
		}
	});
});

// 为可控制返回指定页面所有添加pushState
history.pushState({}, document.title, null);
pushVHistory(self_base_path+"/userCenter/myOrder/orderList.html?type=3");
window.addEventListener("popstate", function() {
    // 跳转到订单列表页面
	goBackVHistory();
});